import resso from "resso";

const state = {
  collapsed:false, //菜单是否折叠  
};

const mutations = {
  setCollapsed(){
    store.collapsed = !store.collapsed
  }
};

const store = resso({
    ...state,
    ...mutations
})

// 定义了store hook
const useStore = () => store;
export default useStore;